package com.apac.bom;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the requirements_tbl database table.
 * 
 */
@Entity
@Table(name="requirements_tbl")
public class Requirement extends AbstractBOM implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="RQMT_CODE")
	private int rqmtCode;

	@Column(name="RQMT_DESC")
	private String rqmtDesc;

	//bi-directional many-to-one association to AccountRequirement
	@OneToMany(mappedBy="requirement")
	private List<AccountRequirement> accountRequirements;

	public Requirement() {
	}

	public int getRqmtCode() {
		return this.rqmtCode;
	}

	public void setRqmtCode(int rqmtCode) {
		this.rqmtCode = rqmtCode;
	}

	public String getRqmtDesc() {
		return this.rqmtDesc;
	}

	public void setRqmtDesc(String rqmtDesc) {
		this.rqmtDesc = rqmtDesc;
	}

	public List<AccountRequirement> getAccountRequirements() {
		return this.accountRequirements;
	}

	public void setAccountRequirements(List<AccountRequirement> accountRequirements) {
		this.accountRequirements = accountRequirements;
	}

}